<?php
if (! defined('PHPMYADMIN')) { exit; } require_once './libraries/relation.lib.php'; if (! PMA_isValid($_REQUEST['no_history']) && empty($GLOBALS['error_message']) && ! empty($GLOBALS['sql_query'])) { PMA_setHistory(PMA_ifSetOr($GLOBALS['db'], ''), PMA_ifSetOr($GLOBALS['table'], ''), $GLOBALS['cfg']['Server']['user'], $GLOBALS['sql_query']); } ?>
<script type="text/javascript">
//<![CDATA[
<?php
if (empty($GLOBALS['error_message'])) { ?>
// updates current settings
if (window.parent.setAll) {
window.parent.setAll('<?php
echo PMA_escapeJsString($GLOBALS['lang']) . "', '"; echo PMA_escapeJsString($GLOBALS['collation_connection']) . "', '"; echo PMA_escapeJsString($GLOBALS['server']) . "', '"; echo PMA_escapeJsString(PMA_ifSetOr($GLOBALS['db'], '')) . "', '"; echo PMA_escapeJsString(PMA_ifSetOr($GLOBALS['table'], '')) . "', '"; echo PMA_escapeJsString($_SESSION[' PMA_token ']);?>');
}
<?php
if (! empty($GLOBALS['reload'])) { ?>
// refresh navigation frame content
if (window.parent.refreshNavigation) {
window.parent.refreshNavigation();
}
<?php
} ?>
// set current db, table and sql query in the querywindow
if (window.parent.reload_querywindow) {
window.parent.reload_querywindow(
'<?php echo PMA_escapeJsString(PMA_ifSetOr($GLOBALS['db'], '')) ?>',
'<?php echo PMA_escapeJsString(PMA_ifSetOr($GLOBALS['table'], '')) ?>',
'<?php echo strlen($GLOBALS['sql_query']) > $GLOBALS['cfg']['MaxCharactersInDisplayedSQL'] ? PMA_escapeJsString($GLOBALS['sql_query']) : ''; ?>');
}
<?php
} if (! empty($GLOBALS['focus_querywindow'])) { ?>
// set focus to the querywindow
if (parent.querywindow && !parent.querywindow.closed && parent.querywindow.location) {
self.focus();
}
<?php
} ?>
if (window.parent.frame_content) {
// reset content frame name, as querywindow needs to set a unique name
// before submitting form data, and navigation frame needs the original name
if (typeof(window.parent.frame_content.name) != 'undefined'
&& window.parent.frame_content.name != 'frame_content') {
window.parent.frame_content.name = 'frame_content';
}
if (typeof(window.parent.frame_content.id) != 'undefined'
&& window.parent.frame_content.id != 'frame_content') {
window.parent.frame_content.id = 'frame_content';
}
//window.parent.frame_content.setAttribute('name', 'frame_content');
//window.parent.frame_content.setAttribute('id', 'frame_content');
}
//]]>
</script>
<?php
if (!isset($GLOBALS['checked_special'])) { $GLOBALS['checked_special'] = false; } if (PMA_getenv('SCRIPT_NAME') && empty($_POST) && !$GLOBALS['checked_special']) { echo '<div id="selflink" class="print_ignore">' . "\n"; $url_params['target'] = basename(PMA_getenv('SCRIPT_NAME')); echo '<a href="index.php' . PMA_generate_common_url($url_params) . '"' . ' title="' . $GLOBALS['strOpenNewWindow'] . '" target="_blank">'; if ($GLOBALS['cfg']['NavigationBarIconic']) { echo '<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 'window-new.png"' . ' alt="' . $GLOBALS['strOpenNewWindow'] . '" />'; } if ($GLOBALS['cfg']['NavigationBarIconic'] !== true) { echo $GLOBALS['strOpenNewWindow']; } echo '</a>' . "\n"; echo '</div>' . "\n"; } if (! empty($GLOBALS['controllink'])) { @PMA_DBI_close($GLOBALS['controllink']); } if (! empty($GLOBALS['userlink'])) { @PMA_DBI_close($GLOBALS['userlink']); } if (file_exists('./config.footer.inc.php')) { require './config.footer.inc.php'; } if (! empty($GLOBALS['cfg']['DBG']['enable']) && ! empty($GLOBALS['cfg']['DBG']['profile']['enable'])) { require_once './libraries/dbg/setup.php'; } ?>
</body>
</html>
<?php
exit; ?>
